from setuptools import setup, find_packages
import py2exe, os, glob, sys

excludeList = ['PyShell', 'dl', 'dotblas', 'hexdump', 'mx', 'win32com.gen_py',
	"pywin", "pywin.debugger", "pywin.debugger.dbgcon",
	"pywin.dialogs", "pywin.dialogs.list",
	"Tkconstants", "Tkinter", "tcl", "tcl84", "tk84", "qt-mt3", 
	]
iconFiles = os.path.join("","*.*")


def removeWinFiles():
	"""
	Removes unneeded dll's from Windows/System32 directory
	"""
	path = os.curdir
	path = os.path.join(path,"dist")
	removes = ["AVICAP32.dll", "AVIFIL32.dll", "MSACM32.dll", "MSVFW32.dll"]
	for filename in removes:
		rmfile = os.path.join(path,filename)
		os.remove(rmfile)

setup(name="CheckMRFiles",
   windows=[{"script":"CheckMRFiles.py",
		"icon_resources": [(1, "yammi_star.ico")]
			 } ],
   options = {"py2exe":
			 { "excludes": excludeList,
			  }},
   )